﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MemberPromotionFreeGive.aspx.cs" Inherits="bianzhuo.SupportPlatform.BzBusiness.MemberPromotionFreeGive" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>免费赠送活动用户管理</title>
    <link href="css/style.css" rel="stylesheet" type="text/css" />
    <link href="css/input_ck.css" rel="stylesheet" type="text/css" />
    <script src="js/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="js/tdcolor.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div class="content">
            <ul class="breadcrumb"> 
     <li><div class="tem_img tem_l" title="关闭左侧菜单" id="closeleftframe" onclick="parent.document.getElementsByTagName('frameset')[1].cols = '0,*'; $('#closeleftframe').hide(); $('#openleftframe').show();"></div><div class="tem_img tem_r" title="展开左侧菜单"  id="openleftframe" onclick="parent.document.getElementsByTagName('frameset')[1].cols = '240,*';$('#closeleftframe').show();$('#openleftframe').hide();"></div></li>  
                <li><a href="#">首页</a> <span class="divider">/</span></li>
                <li class="active">免费赠送活动用户管理</li>
            </ul>
            <div class="container">
                <div class="member_div">
                    <ul>
                        <li>
                            <div class="mem_dbg mem_dbg01 mem_dtmd"></div>
                            <div class="mem_dtit"><a class="mem_dta" href="UserCardModify.aspx?MicroId=<%=Request["MicroId"]%>">会员卡设置</a></div>
                        </li>
                        <li>
                            <div class="mem_dbg mem_dbg02 mem_dtmd"></div>
                            <div class="mem_dtit"><a class="mem_dta" href="MemberClassDefault.aspx?MicroId=<%=Request["MicroId"]%>">会员卡等级</a></div>
                        </li>
                        <li>
                            <div class="mem_dbg mem_dbg03  mem_dtmd"></div>
                            <div class="mem_dtit"><a class="mem_dta" href="MemberPackageDefault.aspx?MicroId=<%=Request["MicroId"]%>">会员卡套餐</a></div>
                        </li>
                        <li>
                            <div class="mem_dbg mem_dbg04"></div>
                            <div class="mem_dtit"><a class="mem_dth" href="MemberPromotionDefault.aspx?MicroId=<%=Request["MicroId"]%>">会员促销活动</a></div>
                        </li>
                        <li>
                            <div class="mem_dbg mem_dbg05 mem_dtmd"></div>
                            <div class="mem_dtit"><a class="mem_dta" href="UserInfoDefault.Aspx?MicroId=<%=Request["MicroId"]%>">会员管理</a></div>
                        </li>
                    </ul>
                </div>
                <div>
                    <div class="cp_div4">
                        <div class="cpcx_r">
                            <select id="sltStatus" class="btn" runat="server" onchange="this.form.submit()">
                                <option value="">状态</option>
                                <option value="1">使用中</option>
                                <option value="2">已领取</option>
                                <option value="3">已过期</option>
                            </select>
                            <input id="txtKeyword" type="text" class="btn" placeholder="微信号/手机号/会员名称" value="" runat="server" />
                            <button class="btn_small btn-03" type="submit">查询</button>
                        </div>
                    </div>

                    <asp:Repeater ID="Repeater1" runat="server">
                        <HeaderTemplate>
                            <table class="user_list" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <th width="7%" class="border_left">
                                        <input  id="selall" type="checkbox" />&nbsp;全选</th>
                                    <th width="18%">用户信息</th>
                                    <th width="13%" align="center">领取时间</th>
                                    <th width="20%" align="center">活动内容</th>
                                    <th width="8%" align="center">特权状态</th>
                                    <th width="10%" align="center">领取状态</th>
                                    <th width="25%" align="center">特权有效期</th>

                                </tr>
                        </HeaderTemplate>
                        <ItemTemplate>


                            <tr class="td25">
                                <td height="30" align="center" class="border_left">
                                    <input name="Id" type="checkbox" value="<%#Eval("Id")%>" /></td>
                                <td height="30" align="center"><%#getPromotionUserInfo(Eval("UserId")) %></td>
                                <td height="30" align="center"><span class="mem_zhek3"><%#Convert.ToDateTime(Eval("TimeAdded")).ToShortDateString()%></span></td>
                                <td align="center"><%#getPromotionContent(Eval("proId")) %></td>
                                <td align="center"><%#getUserPromotionStatus(Eval("UserId"),Eval("ProId")) %></td>
                                <td align="center">已领取<span class="mem_zhek2"><%#getMemberSumOfUserPromotionEvent(Eval("UserId"),Eval("ProId")) %></span></td>
                                <td align="center"><%#getPromotionDateTime(Eval("proId")) %></td>
                            </tr>

                        </ItemTemplate>
                        <FooterTemplate>
                            <tr>
                                <td colspan="7" class="border_left">
                                    <button id="Delete" name="Delete" type="submit" class="btn_small btn-01">删除记录</button></td>
                            </tr>


                            </table>
                        </FooterTemplate>

                    </asp:Repeater>
                    <div class="pagination">
                        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" FirstPageText="首页"
                            LastPageText="尾页" NextPageText="下一页" OnPageChanged="AspNetPager1_PageChanged"
                            PrevPageText="上一页" PagingButtonSpacing="0px" NumericButtonCount="3" PageIndexBoxType="TextBox" ShowPageIndexBox="Never" SubmitButtonText="Go" TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到">
                        </webdiyer:AspNetPager>
                    </div>
                </div>
            </div>
        </div>


    </form>

    <script>
        $('#selall').click(function () {
            $('[name=Id]:checkbox').attr("checked", ($(this).attr("checked") == 'checked') ? true : false);
        });

        $('#Delete').click(function () {
            return confirm('确定要删除选定记录吗？');

        });
    </script>
</body>
</html>
